﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace shouqian
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form2 js = new Form2();
            js.Show();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button2_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F5)
            {
                button2.Focus();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SqlConnection yu = new SqlConnection(
               "Data Source=.SQLEXPRESS;Initial Catalog=master;Integrated Security=True");
            yu.Open();
            string sql = string.Format("select count(*) from VIP where GoodsCode = '{0}' and GoodsName='{1}' and", name, pwd);
            SqlCommand jieshou = new SqlCommand(sql, yu);
        }

        private void button1_KeyUp(object sender, KeyEventArgs e)
        {

        }

        private void textBox1_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F2)
            {
                textBox1.Focus();
            }
        }
    }
}
